﻿using CC.Core;
using CC.Model;
using System.Data;

namespace CC.Data
{
    public interface IRepository
    {

        public T? QueryEntity<T>(long id) where T : class;

        public T? QueryEntity<T>(string sql) where T : class;

        public List<T> Query<T>(string sql) where T : class;

        public bool UpadteLoginState<T>(int userId, bool isLogin) where T : UserBase;
    }
}
